home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 June: Reference Library / Dev.CD Jun 00 RL Disk 1.toast / pc / technical documentation / develop / develop issue 28 / develop issue 28 code / sketch / source / appleevent / appleevent.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-10  |  1.1 KB  |  34 lines

  1. /****************************************************************************
  2.  * 
  3.  * AppleEvent.h
  4.  * 
  5.  * Functions related to processing AppleEvents and dispatching to the appropriate handlers
  6.  *
  7.  ****************************************************************************/
  8.  
  9. #ifndef __APPLEEVENT__
  10. #define __APPLEEVENT__
  11.  
  12. // --------------------------------------------------------------------------
  13.  
  14. Boolean            InstallAEHandlers                        (void);
  15. Boolean          InstallOtherEventHandlers            (void);
  16.  
  17. Boolean            HasAppleEvents                            (void);
  18.  
  19. Boolean            HasUnhandledParameters                (AppleEvent* appleEvent);
  20. OSErr                StuffErrorNumberIntoReply            (OSErr err, AppleEvent* reply);
  21.  
  22. pascal OSErr     HandleEveryOtherAppleEvent            (AppleEvent *appleEvent, AppleEvent *reply, long refCon);
  23.  
  24. OSErr             CheckForUnusedParameters            (const AppleEvent* appleEvent);
  25.  
  26. OSErr             PutReplyErrorNumber                    (AppleEvent* reply, long errorNumber);
  27. OSErr             PutReplyErrorMessage                    (AppleEvent* reply, char *message);
  28.  
  29. OSErr                GetObjectClassFromAppleEvent        (const AppleEvent *appleEvent, DescType *typeOfObject);
  30.  
  31. // --------------------------------------------------------------------------
  32.  
  33.  #endif
  34.